#include <stdio.h>
#include <stdlib.h>

/**
 * @brief 链表的节点
 * 
 */
typedef struct _Node
{
    int data;
    struct _Node * next;
} Node;

void createList(Node **pHead) {
    // 创建一个链表节点
    Node *node = malloc(sizeof(Node));
    node->data = 100;
    node->next = NULL;

    // 获取到最后一个节点，连接到创建的节点
    Node *last = *pHead;
    if (last) {
        while (last->next)
        {
            last = last->next;
        }
        last->next = node;
    } else {
        *pHead = node;
    } 
    
}

int main() {

    Node *head = NULL;
    createList(&head);

    return 0;
}